package persistent.prestige.console.threadmode.t3.channel;

import java.io.Serializable;
import java.nio.channels.SelectableChannel;

import persistent.prestige.console.threadmode.t3.SubReactorThread;

public interface Channel extends Serializable {
	
	int read(Object msg);
	int write(Object msg);
	
	ChannelPipeline pipeline();
	
	//通道所在的IO线程
	SubReactorThread eventLoop();
	
	SelectableChannel channel();

}
